package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Fgdzz;

public interface FgdzzMapper {
    int deleteByPrimaryKey(String deviceid);

    int insert(Fgdzz record);

    int insertSelective(Fgdzz record);

    Fgdzz selectByPrimaryKey(String deviceid);

    int updateByPrimaryKeySelective(Fgdzz record);

    int updateByPrimaryKey(Fgdzz record);
    
    int deleteById(@Param("deviceid")String deviceid,@Param("lastmodifiedtime")Date time);
    
    List<Fgdzz> selectDeviceList(@Param("name") String name,@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType") int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("stationDeviceType")int stationDeviceType,@Param("stationCode")String stationCode,@Param("beginTime") String beginTime,@Param("endTime") String endTime,
            @Param("beginIndex") int beginIndex, @Param("pageSize") int pageSize);

    int selectDeviceCount(@Param("name") String name,@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType") int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("stationDeviceType")int stationDeviceType,@Param("stationCode")String stationCode,@Param("beginTime") String beginTime,@Param("endTime") String endTime);
    
    int selectCount(@Param("name")String devicename,@Param("companyid")Long companyid,@Param("stationcode")String stationcode);
    
    List<Fgdzz> selectDevice(@Param("name")String devicename,@Param("companyid")Long companyid,@Param("stationcode")String stationcode,@Param("beginindex")int beginindex,@Param("pagesize")int pagesize);
}